﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;

namespace WinFormsAppTest.pojo
{
    internal class User
    {
        private int userid;
        private string name;
        private string password;

        public int Userid { get => userid; set => userid = value; }
        public string Name { get => name; set => name = value; }
        public string Password { get => password; set => password = value; }

        public User(int userid, string name, string password)
        {
            this.userid = userid;
            this.name = name ?? throw new ArgumentNullException(nameof(name));
            this.password = password ?? throw new ArgumentNullException(nameof(password));
        }

        public User()
        {
        }
    }
}
